package ca.uoit.csci2020u.classes;

// Any classes that are used which come from an external location (separate file in project, Java BCL, etc.) must be imported.
import ca.uoit.csci2020u.classes.Sphere;
import ca.uoit.csci2020u.interfaces.Stretchable;

public class Balloon extends Sphere implements Stretchable {
	private String color;

	public Balloon(String color, float radius) {
		// This calls one of the superclass' constructors.
		super(radius);

		this.color = color;
	}

	@Override
	public String getColor() {
		return this.color;
	}

	@Override
		public void resize(float factor) {
			// You can refer to 'R' as 'this.R' or even 'R', however, it makes determining where the variable defined difficult.
			super.R = super.R * factor;
	}
}
